<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>流程列表</title>
    <script src="/static/bflow/assets/js/scriptLib.js"></script>
    <script src="/static/bflow/assets/js/tableScriptLib.js"></script>
    <script type="text/javascript">
        $(function () {
            //doc: http://bootstrap-table.wenzhixin.net.cn/zh-cn/documentation/
            $('#dataList').bootstrapTable({
                url: '/bflow/act/chooseList',
                search: true,
                maintainSelected: true,
                clickToSelect: true,
                showToggle: true,
                pagination: true,
                showRefresh: true,
                showColumns: true,
            });
        });

        function retAllSelectId(){
            var array = $('#dataList').bootstrapTable('getAllSelections');
            log(array);
            var result = new Array();
            if(array && array.length > 0){
                for(var i=0; i<array.length; i++){
                    result.push(array[i].id);
                }
            }
            return result;
        }

        function retAllSelect(){
            var array = $('#dataList').bootstrapTable('getAllSelections');
            log(array);
            return array;
        }
    </script>
</head>
<body>
    <table id="dataList"   data-sort-name="createTime" data-sort-order="asc">
        <thead>
        <tr>
            <th data-checkbox="true">#</th>
            <th data-field="id">ID</th>
            <th data-field="key">KEY</th>
            <th data-field="name">活动名称</th>
            <th data-field="assignee">参与者标识</th>
            <th data-field="createTime" data-sortable="true" data-searchable="false">创建时间</th>
        </tr>
        </thead>
        <tbody></tbody>
    </table>
</body>
</html>